# Contributor: Sean McAvoy <seanmcavoy@gmail.com>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=clipit
pkgver=1.4.5
pkgrel=2
pkgdesc="ClipIt is a lightweight GTK+ clipboard manager"
url="https://github.com/CristianHenzel/ClipIt"
arch="all"
license="GPL-3.0-only"
makedepends="intltool gtk+2.0-dev gtk+3.0-dev xdotool-dev automake autoconf"
options="!check"
subpackages="$pkgname-doc"
source="ClipIt-$pkgver.tar.gz::https://github.com/CristianHenzel/ClipIt/archive/v$pkgver.tar.gz"
builddir="$srcdir/ClipIt-$pkgver"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-gtk3
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="2bfa2635be9fd63a8bf41842da5a6a4063b442b4e8d011bb1a696ae1e9883408fb327eb331e220d10569ec72c399ca79ac5a94f7fe5402ae4fae11bacbe87b70  ClipIt-1.4.5.tar.gz"
